

import 'package:flutter/material.dart';

void main(){
  runApp(const MyApp());
}

class MyApp extends StatelessWidget{

  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // return const HomeContent();
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Flutter app bar title"),

        ),
        body: const HomeContent(),
      ),
      theme: ThemeData(
        primarySwatch: Colors.yellow
      ),
    );
  }

}

class HomeContent extends StatelessWidget{

  const HomeContent({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Center(
      child:
      Text("哈哈哈哈哈哈",
        textDirection: TextDirection.ltr,
        style: TextStyle(
            fontSize: 50.0,
            // color: Colors.red
            color: Color.fromARGB(100, 255, 0, 0)
        ),
      ),
    );
  }

}

